package com.ruoyi.chat.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 评论对象 comment
 * 
 * @author zhc
 * @date 2025-05-31
 */
public class Comment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 评论的朋友圈是哪个用户的关联id */
    @Excel(name = "评论的朋友圈是哪个用户的关联id")
    private String belongUserId;

    /** 如果是回复留言，则本条为子留言，需要关联查询 */
    @Excel(name = "如果是回复留言，则本条为子留言，需要关联查询")
    private String fatherId;

    /** 评论的那个朋友圈的主键id */
    @Excel(name = "评论的那个朋友圈的主键id")
    private String friendCircleId;

    /** 发布留言的用户id */
    @Excel(name = "发布留言的用户id")
    private String commentUserId;

    /** 留言内容 */
    @Excel(name = "留言内容")
    private String commentContent;

    /** 留言时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "留言时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setBelongUserId(String belongUserId) 
    {
        this.belongUserId = belongUserId;
    }

    public String getBelongUserId() 
    {
        return belongUserId;
    }

    public void setFatherId(String fatherId) 
    {
        this.fatherId = fatherId;
    }

    public String getFatherId() 
    {
        return fatherId;
    }

    public void setFriendCircleId(String friendCircleId) 
    {
        this.friendCircleId = friendCircleId;
    }

    public String getFriendCircleId() 
    {
        return friendCircleId;
    }

    public void setCommentUserId(String commentUserId) 
    {
        this.commentUserId = commentUserId;
    }

    public String getCommentUserId() 
    {
        return commentUserId;
    }

    public void setCommentContent(String commentContent) 
    {
        this.commentContent = commentContent;
    }

    public String getCommentContent() 
    {
        return commentContent;
    }

    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("belongUserId", getBelongUserId())
            .append("fatherId", getFatherId())
            .append("friendCircleId", getFriendCircleId())
            .append("commentUserId", getCommentUserId())
            .append("commentContent", getCommentContent())
            .append("createdTime", getCreatedTime())
            .toString();
    }
}
